package cn.wen.eeayjoke.ui;

import android.view.View;
import android.widget.Toast;

import cn.wen.core.titlebar.DefTitleBar;
import cn.wen.core.ui.AppActivity;
import cn.wen.eeayjoke.R;

/**
 * 分享测试的Activity
 * 实际开发：要去lib-mob  assets ShareSDK.xml AndroidManifest.xml 下配置自己应用的开发 AppKey  AppSecret
 */

public class ShareTestActivity extends AppActivity {
    @Override
    protected Object getContentLayout() {
        return R.layout.activity_share;
    }

    @Override
    protected void initTitle(DefTitleBar titleBar) {
        titleBar.setTitle("分享测试");
    }

    /**
     * 分享测试
     */
    public void share(View view) {
        Toast.makeText(this, "要配置信息，参考注释和ShareDialog类", Toast.LENGTH_SHORT).show();
        //
//        ShareDialog share = new ShareDialog(this);
//        String imageUrl = "http://h.hiphotos.baidu.com/image/pic/item/3bf33a87e950352a61a5bfc25a43fbf2b3118b30.jpg";
//        share.shareImageUrl(imageUrl)
//                .shareText("分享文本")
//                .shareTitle("分享标题")
//                .shareUrl("https://www.baidu.com")
//                .show();
    }
}
